#
#  Be sure to run `pod spec lint ZNReader.podspec' to ensure this is a
#  valid spec and to remove all comments including this before submitting the spec.
#
#  To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html
#  To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
#

Pod::Spec.new do |s|
  s.name         = "ZMSwiftUtils" # 项目名称
  s.version      = "1.0.0"        # 版本号 与 仓库的 标签号 对应
  s.license      = { :type => "MIT", :file => "LICENSE" }          # 开源证书
  s.summary      = "Utils" # 项目简介
  s.homepage     = "https://gitlab.com/ZM_iOS/Component/ZMSwiftUtils" # 仓库的主页
  s.source       = { :git => "https://gitlab.com/ZM_iOS/Component/ZMSwiftUtils.git", :tag => "#{s.version}" }
  s.source_files = 'Sources/*.{swift}','Sources/**/*.{swift}'
  s.requires_arc = true # 是否启用ARC
  s.author       = { "Guess" => "zengxsh@qq.com" } # 作者信息
  s.platform     = :ios, "13.0" #平台及支持的最低版本
  s.swift_version = "5.3" #所使用swift版本
  s.default_subspec = "Core"
  s.cocoapods_version = '>= 1.4.0'

  s.subspec "Core" do |ss|
    
    ss.source_files  = 'Sources/*.{swift}','Sources/**/*.{swift}'
    ss.framework  = "Foundation","UIKit"

    ss.dependency "Moya"
    ss.dependency "SnapKit"
    ss.dependency "Codextended"
    ss.dependency "BetterCodable"
    ss.dependency "Toast-Swift"
    ss.dependency "RxSwift"
    ss.dependency "RxCocoa"
    ss.dependency "NSObject+Rx"
    ss.dependency "MMKV"
    ss.dependency "CryptoSwift"
    ss.dependency "Kingfisher"
    ss.dependency "KingfisherWebP"
    ss.dependency "Cache"
    ss.dependency "GRDB.swift"
    ss.dependency "SwiftyJSON"
    ss.dependency "AnyCodable"
    ss.dependency "MJRefresh"
    ss.dependency "lottie-ios"
    
  end

end
